<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
	/*全局reset*/
	*{
		padding: 0;
		margin: 0;
	}
	#menu{
		width: 670px;
		height: 40px;
		/*border: 1px solid blue;*/
		margin: 30px auto;
		/*背景颜色*/
		background: #E43C3F;

	}
	#menu a{
		color: white;
		font-size: 15px;
		font-weight: 700;
		text-decoration: none;
		width: 85px;
		height: 40px;
		/*background: blue;*/
		/*转成块级元素*/
		display: block;
		/*让块级元素跑到同一行*/
		float: left;
		text-align: center;
		line-height: 40px;
	}
	#menu a:hover{
		background: #A40000;
	}
	#menu a.index{
		background: #A40000;
	}
</style>
</head>

<body>

<div id="menu">
	<a href="" class="index">首页</a>
	<a href="">服装城</a>
	<a href="">食品</a>
	<a href="">团购</a>
	<a href="">夺宝岛</a>
	<a href="">闪购</a>
	<a href="">金融</a>
</div>



</body>
</html>
